package com.ruoyi.system.service;

import com.ruoyi.system.domain.SysUserSalaryHistory;

import java.util.Date;
import java.util.List;

/**
 * 用户历史薪级
 *
 * @author zy
 * @Date 2022-11-28
 */
public interface ISysUserSalaryHistoryService {
    /**
     * 插入传入月份的用户薪级信息
     *
     * @param payId
     * @param userId
     * @param nowDate
     * @return
     */
    public int insertUserSalaryHistoryByUserId(Long payId, Long userId, Date nowDate);

    /**
     * 获取给定月份的所有用户薪级信息
     *
     * @param nowDate
     * @return
     */
    public List<SysUserSalaryHistory> getSalaryHistoryListByNowDate(Date nowDate);

    /**
     * 获取给定月份的用户薪级信息
     *
     * @param userId
     * @param nowDate
     * @return
     */
    public SysUserSalaryHistory getSalaryHistoryByUserIdAndNowDate(Long userId, Date nowDate);

    /**
     * 触发薪级更新
     *
     * @param payId
     * @param userId
     * @param nowDate
     * @return
     */

    public int insertOrUpdateUserSalaryHistoryByUserId(Long payId, Long userId, Date nowDate);
}
